package com.remiss.seckilldemo.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum ResposeBeanEnum {
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),
    //登录
    LOGIN_ERROR(123,"用户名或者密码错误"),
    MOBILE_ERROR(2002,"手机号输入错误"),
    PASSWORD_ERROR(45454,"密码错误"),
    MOBILE_NOT_EXIT(500213,"手机号码不存在"),
    PASSWORD_UPDATE_FAIL(500214,"更新密码失败"),
    SESSION_ERROR(500352,"用户未登录"),
    BIND_ERROR(500212,"参数校验异常"),
//   秒杀
    EMPTY_STOCK_ERROR(500155,"秒杀商品已被抢购完"),
    REPEATE_ERROR(500156,"您已经秒杀过本商品"),
//    订单
    NO_ORDER_ERROR(500303,"订单不存在");
    private final Integer code;
    private final String message;
}
